

//定义返回医院接口类型
export interface ResponesData {
  code: number;
  message: string;
  ok: boolean;
}
//定义已有医院的接口类型
export interface HospitalContend {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    hostypeString: string;
    fullAddress: string;
  };
  hoscode: string;
  hosname: string;
  hostype: string;
  provinceCode: string;
  cityCode: string;
  districtCode: string;
  address: string;
  logoData: string;
  status: number;
  intro: string;
  route: string;
  bookingRule: {
    cycle: number;
    releaseTime: string;
    stopTime: string;
    quitDay: number;
    quitTime: string;
    rule: string[];
  };
}
//定义存储医院的数组类型
export type content = HospitalContend[];
//定义返回所有的医院接口类型
export interface AllHospital extends ResponesData {
  data: {
    content: content;
    pageable: {
      sort: {
        sorted: boolean;
        unsorted: boolean;
        empty: boolean;
      };
      pageNumber: number;
      pageSize: number;
      offset: number;
      paged: boolean;
      unpaged: boolean;
    };
    totalPages: number;
    totalElements: number;
    last: boolean;
    first: boolean;
    sort: {
      sorted: boolean;
      unsorted: boolean;
      empty: boolean;
    };
    numberOfElements: number;
    size: number;
    number: number;
    empty: boolean;
  };
}
//定义返回的医院等级接口
export interface HospitalLevel {

    createTime: string,
    dictCode: string,
    hasChildren: boolean,
    id: number,
    isDeleted: number,
    name: string,
    param: {},
    parentId: number,
    updateTime: string,
    value: string,

}
//定义返回的医院等级接口数组
export type HospitalLevelArr = HospitalLevel[];
export interface HospitalLevelData extends ResponesData {
  data:HospitalLevelArr
}
//定义返回的医院信息接口类型
export interface HospitalInfo extends ResponesData {
  data:content
}
